import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const listPage = (query) => request({
    url: baseUrl + '/activiti/process/page',
    method: 'get',
    params: query
});

export const getProcessImg = (query) => request({
    url: baseUrl + '/activiti/process/resource',
    method: 'get',
    params: query
});

export const updateProcess = (data) => request({
    url: baseUrl + '/activiti/process/update',
    method: 'put',
    data: data
});

export const deleteProcess = (id) => request({
    url: baseUrl + '/activiti/process/delete/' + id,
    method: 'delete',
});
